﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.ComponentModel;
using QuanLyRapChieuPhim.DAO;
using QuanLyRapChieuPhim.DTO;

namespace QuanLyRapChieuPhim.BUS
{
    class SuatChieuBUS
    {
        private SuatChieuDAO DAO = new SuatChieuDAO();

        public BindingList<SuatChieuDTO> GetList()
        {
            return DAO.GetList();
        }

        public BindingList<SuatChieuDTO> GetList_QL()
        {
            return DAO.GetList_QL();
        }

        public BindingList<SuatChieuDTO> GetList_QL_DaXoa()
        {
            return DAO.GetList_QL_DaXoa();
        }

        public BindingList<SuatChieuDTO> GetListLikeName_QL(string _Ten)
        {
            return DAO.GetListLikeName_QL(_Ten);
        }

        public BindingList<SuatChieuDTO> GetListLikeName_QL_DaXoa(string _Ten)
        {
            return DAO.GetListLikeName_QL_DaXoa(_Ten);
        }

        public SuatChieuDTO GetFromId(int _Ma)
        {
            return DAO.GetFromId(_Ma);
        }

        public int GetIDFromIDTTDat(int _Ma)
        {
            return DAO.GetIDFromIDTTDat(_Ma);
        }

        public bool Delete(int _Ma)
        {
            return DAO.Delete(_Ma);
        }

        public bool Delete_HetHan()
        {
            return DAO.Delete_HetHan();
        }

        public bool UnDelete(int _Ma)
        {
            return DAO.UnDelete(_Ma);
        }

        public BindingList<SuatChieuDTO> GetList_FromRap(int _Ma)
        {
            return DAO.GetList_FromRap(_Ma);
        }

        public bool Add(SuatChieuDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public bool CheckExists(int _Ma,string _Ten)
        {
            return DAO.CheckExists(_Ma, _Ten);
        }

        public bool Update(SuatChieuDTO _DTO)
        {
            return DAO.Update(_DTO);
        }

        public int DemVeDaBan(int _Ma)
        {
            return DAO.DemVeDaBan(_Ma);
        }

    }
}
